package datatypes;

public class Edge {
	// EdgeId = "H" + host1.getID() + "H" + host2.getID() + "W" + weight;
	private String EdgeID = "notNamed";
	private Host firstNode;
	private Host secondNode;
	//logical interpration of weight is on Transport Layer the range of Bluetooth
	//on overlay network the weight meens the number of hops safed for the way from first to second
	private int weight;
	
	
	public Edge (Host host1, Host host2, String EdgeName, int weight){
		this.firstNode = host1;
		this.secondNode = host2;
		this.EdgeID = EdgeName;
		this.weight = weight;
	}
	
	public String getEdgeID (){
		return EdgeID;
	}
	
	public Host getFirstHost(){
		return this.firstNode;
	}
	
	public Host getSecondHost(){
		return this.secondNode;
	}
	
	public int getWeight(){
		return this.weight;
	}
}
